package edu.ncsu.csc.ip.routing.ls;

/**
 * Class <code>Edge</code>
 * 
 * Graph Edge
 * 
 * @author Moin Ayazifar <mayazif@ncsu.edu>
 * @author Steven Elliott <sdelliot@ncsu.edu>
 * 
 */

public final class Edge {
	
	//weight to destination from this edge
	private double weight;
	
	//destination of this edge
	private Node destination;
	
	public Edge(Node target, double weight) {
		this.setDestination(target);
		this.setWeight(weight);
	}

	/**
	 * @return the target
	 */
	public Node getDestination() {
		return destination;
	}

	/**
	 * @param target the target to set
	 */
	public void setDestination(Node target) {
		this.destination = target;
	}

	/**
	 * @return the weight
	 */
	public double getWeight() {
		return weight;
	}

	/**
	 * @param weight the weight to set
	 */
	public void setWeight(double weight) {
		this.weight = weight;
	}

	

}
